﻿/*
 * Created by SharpDevelop.
 * User: Usuario
 * Date: 27/11/2011
 * Time: 05:35 a.m.
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Drawing;
using System.Windows.Forms;
using PetSoft.GUI.Clinica;
using PetSoft.GUI.Ventas;
using Business_Logic;
using Business_Entity;

namespace PetSoft.GUI.Clinica
{
	/// <summary>
	/// Description of GUIMenuClinica.
	/// </summary>
	public partial class GUIMenuClinica : Form
	{
		public GUIMenuClinica()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			BLPrivilegio blpriv = new BLPrivilegio();
			
			if (!blpriv.existeVentana("SERV","SERV",BLInfo.usuarioActual.Rol.Privilegio))
            		this.mServBTN.Enabled = false;
            if (!blpriv.existeVentana("SERV","BUSP",BLInfo.usuarioActual.Rol.Privilegio))
            		this.buscaBTN.Enabled = false;
            if (!blpriv.existeVentana("SERV","ADOP",BLInfo.usuarioActual.Rol.Privilegio))
            		this.adopBTN.Enabled = false;
            if (!blpriv.existeVentana("SERV","DADO",BLInfo.usuarioActual.Rol.Privilegio))
            		this.dejarABTN.Enabled = false;
            	
            	
            	
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		void SalirBTNClick(object sender, EventArgs e)
		{
			this.Close();
		}
		
		void DejarABTNClick(object sender, EventArgs e)
		{
			BECliente beCliente = new BECliente();
        	beCliente.Nombre = "PETSOFT";
        	beCliente.ApellidoPaterno = "PETSOFT";
        	beCliente.ApellidoMaterno = "PETSOFT";
        	GUIMascota vMas = new GUIMascota(beCliente,3);
        	vMas.ShowDialog();
		}
		
		void AdopBTNClick(object sender, EventArgs e)
		{
			GUIAdoptarMascota vAdop = new GUIAdoptarMascota();
			vAdop.ShowDialog();
		}
		
		void BuscaBTNClick(object sender, EventArgs e)
		{
			GUIBuscaPareja vPar = new GUIBuscaPareja();
			vPar.ShowDialog();
		}
		
		
		void MServBTNClick(object sender, EventArgs e)
		{
			GUIBuscarLineapedidoServicio vServ = new GUIBuscarLineapedidoServicio();
			vServ.ShowDialog();
		}
		
		void ReporteProxBTNClick(object sender, EventArgs e)
		{
			GUIReporteProximaCita v = new GUIReporteProximaCita();
			v.ShowDialog();
		}
	}
}
